package mypackage;

import java.util.Scanner;

public class StringBuildTest {
    public static void main(String[] args) {
        StringBuilder sb=new StringBuilder();
        Scanner sc=new Scanner(System.in);
        System.out.println("请输入数组的长度:");
        int len=sc.nextInt();
        int[] nums=new int[len];
        for (int i = 0; i < len; i++) {
            System.out.println("请输入第"+(i+1)+"个数字");
            nums[i]=sc.nextInt();
        }

    }
}
